import request from '~/utils/request'

export default{

  getList(typeTitle) {
    return request({
      url: `/api/cms/ad/list`,
      method: 'get',
      params: { 'typeTitle': typeTitle }
    })
  },

  getById(id) {
    return request({
      url: `/api/cms/ad/get/${id}`,
      method: 'get'
    })
  }
}
